<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"    
    xmlns:composite="http://java.sun.com/jsf/composite"
    xmlns:p="http://xmlns.jcp.org/jsf/passthrough">

    <!-- INTERFACE -->
    <composite:interface>
    	<composite:attribute name="id"/>
    	<composite:attribute name="label"/>
    	<composite:attribute name="checkBoxBinding"/>
    </composite:interface>
          
    <!-- IMPLEMENTATION -->
    <composite:implementation>
		<div class="form-group">
			<label for="#{cc.attrs.id}" class="col-sm-2 control-label">#{cc.attrs.label}</label>
			<div class="col-sm-10">
				<h:selectBooleanCheckbox id="#{cc.attrs.id}" binding="#{cc.attrs.checkBoxBinding}" styleClass="form-control"/>
			</div>
		</div>
    </composite:implementation>    

</html>